package com.fy.tt.executor.node.element;

import com.fy.tt.executor.environment.Environment;
import com.fy.tt.executor.node.word.common.Identifier;

public class Subject extends Element{

    public Long loginUser;
    public Identifier identifier;

    @Override
    public boolean run(String methodName) {
        boolean res = true;
        if (identifier != null) {
            res = identifier.run(methodName);
            if (res){
                System.out.println("Subject:"+ Environment.environment.get("Identifier").toString());
                Environment.environment.put("Subject", Environment.environment.get("Identifier"));
            }
        }
        return res;
    }
}
